package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOPeration {
    public void work(BookList bookList) {
        System.out.println("打印图书！");
        int currentSize = bookList.getUsedSize();
        for(int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            if(book == null) {
                continue;
            }else {
                System.out.println(book);
            }
        }
    }
}
